package com.guigu.pojo.manufacture;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Zhang
 * @since 2024-12-06
 */
@Data
@TableName("M_DESIGN_PROCEDURE_MODULE")
public class MDesignProcedureModule implements Serializable {

    private static final long serialVersionUID=1L;

    //@apiModelProperty(value = "序号，唯一标识生产工序物料明细记录，自增长")
      @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    //@apiModelProperty(value = "父级序号，关联产品生产工序明细表，不可为空")
    @TableField("PARENT_ID")
    private Integer parentId;

    //@apiModelProperty(value = "工序物料序号，不可为空，标识物料顺序")
    @TableField("DETAILS_NUMBER")
    private Integer detailsNumber;

    //@apiModelProperty(value = "物料编号，不可为空，关联物料信息")
    @TableField("PRODUCT_ID")
    private String productId;

    //@apiModelProperty(value = "物料名称，可空")
    @TableField("PRODUCT_NAME")
    private String productName;

    //@apiModelProperty(value = "用途类型，可空")
    @TableField("TYPE")
    private String type;

    //@apiModelProperty(value = "本工序数量，不可为空")
    @TableField("AMOUNT")
    private BigDecimal amount;

    //@apiModelProperty(value = "物料描述，可空")
    @TableField("PRODUCT_DESCRIBE")
    private String productDescribe;

    //@apiModelProperty(value = "单位，可空")
    @TableField("AMOUNT_UNIT")
    private String amountUnit;

    //@apiModelProperty(value = "单价，不可为空")
    @TableField("COST_PRICE")
    private BigDecimal costPrice;

    //@apiModelProperty(value = "小计，计算为数量与单价乘积，可空")
    @TableField("SUBTOTAL")
    private BigDecimal subtotal;


}
